package com.dragon.modules.yuegou.entity.product;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 商品规格与sku关系表实体类<br>
 * 对应的表为：pro_attr_sku_ref<br>
 * 
 * @author pbuilder generated
 * @date 2019-07-23 09:59:38
 * @company sgy
 * @version 2.0
 */
@TableName("pro_attr_sku_ref")
@ApiModel(description = "商品规格与sku关系表")
public class AttrSkuRefEntity  {

    /**  */
	protected String id;

    /**  */
	protected String spuId;

    /**  */
	protected String skuId;

    /** 规格ID */
	@ApiModelProperty("规格ID")
	protected String attributeId;

    /** 规格名称 */
	@ApiModelProperty("规格名称")
	protected String attributeName;

    /** 规格值ID */
	@ApiModelProperty("规格值ID")
	protected String optionId;

    /** 规格值 */
	@ApiModelProperty("规格值")
	protected String optionValue;

	/**
	 * 构造一个空商品规格与sku关系表实体对象
	 */
	public AttrSkuRefEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个商品规格与sku关系表实体对象
	 * 
	 * @param other 其它对象
	 */
	public AttrSkuRefEntity(AttrSkuRefEntity other){
		super();
     	this.id = other.id;
     	this.spuId = other.spuId;
     	this.skuId = other.skuId;
     	this.attributeId = other.attributeId;
     	this.attributeName = other.attributeName;
     	this.optionId = other.optionId;
     	this.optionValue = other.optionValue;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取
	 * 
	 * @return spuId 
	 */
	public String getSpuId() {
		return spuId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param spuId 
	 */
	public void setSpuId(String spuId) {
		this.spuId = spuId;
	}

	/**
	 * 获取
	 * 
	 * @return skuId 
	 */
	public String getSkuId() {
		return skuId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param skuId 
	 */
	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	/**
	 * 获取规格ID
	 * 
	 * @return attributeId 规格ID
	 */
	public String getAttributeId() {
		return attributeId;
	}
  	
	/**
	 * 设置规格ID
	 * 
	 * @param attributeId 规格ID
	 */
	public void setAttributeId(String attributeId) {
		this.attributeId = attributeId;
	}

	/**
	 * 获取规格名称
	 * 
	 * @return attributeName 规格名称
	 */
	public String getAttributeName() {
		return attributeName;
	}
  	
	/**
	 * 设置规格名称
	 * 
	 * @param attributeName 规格名称
	 */
	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName;
	}

	/**
	 * 获取规格值ID
	 * 
	 * @return optionId 规格值ID
	 */
	public String getOptionId() {
		return optionId;
	}
  	
	/**
	 * 设置规格值ID
	 * 
	 * @param optionId 规格值ID
	 */
	public void setOptionId(String optionId) {
		this.optionId = optionId;
	}

	/**
	 * 获取规格值
	 * 
	 * @return optionValue 规格值
	 */
	public String getOptionValue() {
		return optionValue;
	}
  	
	/**
	 * 设置规格值
	 * 
	 * @param optionValue 规格值
	 */
	public void setOptionValue(String optionValue) {
		this.optionValue = optionValue;
	}

    public String toString() {
		return new StringBuilder().append("AttrSkuRefEntity{").
			append("id=").append(id).
			append(",spuId=").append(spuId).
			append(",skuId=").append(skuId).
			append(",attributeId=").append(attributeId).
			append(",attributeName=").append(attributeName).
			append(",optionId=").append(optionId).
			append(",optionValue=").append(optionValue).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public AttrSkuRefEntity copy() {
		return new AttrSkuRefEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /**  */
	public static final String COL_SPU_ID = "spu_id";

    /**  */
	public static final String COL_SKU_ID = "sku_id";

    /** 规格ID */
	public static final String COL_ATTRIBUTE_ID = "attribute_id";

    /** 规格名称 */
	public static final String COL_ATTRIBUTE_NAME = "attribute_name";

    /** 规格值ID */
	public static final String COL_OPTION_ID = "option_id";

    /** 规格值 */
	public static final String COL_OPTION_VALUE = "option_value";
}
